package com.china.lottery.listener.dao.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Created by tongzhaobin on 14-10-2.
 */
@Entity
@Table(name = "L_CHANNEL_INFO")
public class LChannelInfo implements Serializable {

	public static int STATUS_VALID = 1;
    private static final long serialVersionUID = 1L;
    private int id;
    private String channelCode;
    private String channelName;
    private String linkTelephone;
    private String linkAddress;
    private String linkMan;
    private int status;
    private Boolean isSyn;
    private String remark;
    private Date createTime;

    @Id
    @SequenceGenerator(name="S_CHANNEL_INFO_GENERATOR", sequenceName="S_CHANNEL_INFO",allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="S_CHANNEL_INFO_GENERATOR")
    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name = "CHANNEL_CODE", nullable = false, length = 10)
    public String getChannelCode() {
        return this.channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    @Column(name = "CHANNEL_NAME", length = 200)
    public String getChannelName() {
        return this.channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    @Column(name = "LINK_TELEPHONE", length = 40)
    public String getLinkTelephone() {
        return this.linkTelephone;
    }

    public void setLinkTelephone(String linkTelephone) {
        this.linkTelephone = linkTelephone;
    }

    @Column(name = "LINK_ADDRESS", length = 200)
    public String getLinkAddress() {
        return this.linkAddress;
    }

    public void setLinkAddress(String linkAddress) {
        this.linkAddress = linkAddress;
    }

    @Column(name = "LINK_MAN", length = 50)
    public String getLinkMan() {
        return this.linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    @Column(name = "STATUS", nullable = false, precision = 2, scale = 0)
    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name = "IS_SYN", precision = 1, scale = 0)
    public Boolean getIsSyn() {
        return this.isSyn;
    }

    public void setIsSyn(Boolean isSyn) {
        this.isSyn = isSyn;
    }

    @Column(name = "REMARK", length = 1000)
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "LChannelInfo{" +
                "id=" + id +
                ", channelCode='" + channelCode + '\'' +
                ", channelName='" + channelName + '\'' +
                ", linkTelephone='" + linkTelephone + '\'' +
                ", linkAddress='" + linkAddress + '\'' +
                ", linkMan='" + linkMan + '\'' +
                ", status=" + status +
                ", isSyn=" + isSyn +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
